package com.im.guice;

import android.content.Context;

import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import com.im.db.DBHelper;
import com.im.db.XmppMessageDao;

public class GuiceModule extends AbstractModule {

	@Override
	protected void configure() {
		//install(module);
	}
	
	@Provides @Singleton
	DBHelper dbHelper(Context context){
		return new DBHelper(context);
	}
	
	@Provides @Singleton
	XmppMessageDao xmppMessageDao(DBHelper dbHelper){
		return new XmppMessageDao(dbHelper);
	}
}
